package com.wxapi.demo;

import com.wxapi.WxApiCall.WxApiCall;
import com.wxapi.model.RequestModel;

import java.util.HashMap;
import java.util.Map;

/**
 */
public class Demo {

	public static void main(String[] args) {
		RequestModel model = new RequestModel();
		model.setGwUrl("https://way.jd.com/path1/path2");
		model.setAppkey("您的appkey");
//		model.setFilePath("图片路径");   //如果是图片请提供地址
		model.setBodyStr("{\"a\":1}");
		Map<String,Object> queryMap = new HashMap<String, Object>();
		queryMap.put("a","34");
		queryMap.put("b","0");
		model.setQueryParams(queryMap);
		WxApiCall call = new WxApiCall();
		call.setModel(model);
		System.out.println(call.request());
	}

}
